/*
 * $Id: AbstractOnwatchTask.java,v 1.3 2009/07/24 18:27:42 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Mon Apr 27 12:40:38 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the ACT_ONWATCH_TASK table. You can
 * customize the behavior of this class by editing the class, {@link
 * ActOnwatchTask()}. WARNING: DO NOT EDIT THIS FILE. This is a generated file
 * that is synchronized by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractOnwatchTask implements Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -6379398175442784326L;

	/**
	 * The cached hash code value for this instance. Settting to 0 triggers
	 * re-calculation.
	 */
	private int hashValue = 0;

	/** The composite primary key value. */
	private java.lang.Long onwatchTaskId;

	/** The value of the taskId property. */
	private java.lang.Long taskId;

	/** The value of the simple onwatchTaskListId property. */
	private java.lang.Long onwatchTaskListId = new Long(0);

	/** The value of the simple enteredDate property. */
	private java.util.Date enteredDate;

	/** The value of the simple executionTimeInSec property. */
	private java.lang.Long executionTimeInSec = new Long(0);

	/** The value of the simple deliveredDate property. */
	private java.util.Date deliveredDate;

	/** The value of the simple completionDate property. */
	private java.util.Date completionDate;

	/** The value of the simple priority property. */
	private java.lang.Long taskOrder = new Long(0);

	/** The value of the simple status property. */
	private java.lang.String status;

	/**
	 * Simple constructor of AbstractOnwatchTask instances.
	 */
	public AbstractOnwatchTask() {
	}

	/**
	 * Constructor of AbstractOnwatchTask instances given a simple primary key.
	 * 
	 * @param onwatchTaskId
	 */
	public AbstractOnwatchTask(java.lang.Long onwatchTaskId) {
		this.setOnwatchTaskId(onwatchTaskId);
	}

	/**
	 * Return the simple primary key value that identifies this object.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getOnwatchTaskId() {
		return onwatchTaskId;
	}

	/**
	 * Set the simple primary key value that identifies this object.
	 * 
	 * @param onwatchTaskId
	 */
	public void setOnwatchTaskId(java.lang.Long onwatchTaskId) {
		this.hashValue = 0;
		this.onwatchTaskId = onwatchTaskId;
	}

	/**
	 * Return the value of the ONWATCH_TASK_LIST_ID column.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getOnwatchTaskListId() {
		return this.onwatchTaskListId;
	}

	/**
	 * Set the value of the ONWATCH_TASK_LIST_ID column.
	 * 
	 * @param onwatchTaskListId
	 */
	public void setOnwatchTaskListId(java.lang.Long onwatchTaskListId) {
		this.onwatchTaskListId = onwatchTaskListId;
	}

	/**
	 * Return the value of the TASK_ID column.
	 * 
	 * @return java.lang.Long
	 */
	public Long getTaskId() {
		return this.taskId;
	}

	/**
	 * Set the value of the TASK_ID column.
	 * 
	 * @param taskId
	 */
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	/**
	 * Return the value of the ENTERED_DATE column.
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getEnteredDate() {
		return this.enteredDate;
	}

	/**
	 * Set the value of the ENTERED_DATE column.
	 * 
	 * @param enteredDate
	 */
	public void setEnteredDate(java.util.Date enteredDate) {
		this.enteredDate = enteredDate;
	}

	/**
	 * Return the value of the EXECUTION_TIME_IN_SEC column.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getExecutionTimeInSec() {
		return this.executionTimeInSec;
	}

	/**
	 * Set the value of the EXECUTION_TIME_IN_SEC column.
	 * 
	 * @param executionTimeInSec
	 */
	public void setExecutionTimeInSec(java.lang.Long executionTimeInSec) {
		this.executionTimeInSec = executionTimeInSec;
	}

	/**
	 * Return the value of the DELIVERED_DATE column.
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getDeliveredDate() {
		return this.deliveredDate;
	}

	/**
	 * Set the value of the DELIVERED_DATE column.
	 * 
	 * @param deliveredDate
	 */
	public void setDeliveredDate(java.util.Date deliveredDate) {
		this.deliveredDate = deliveredDate;
	}

	/**
	 * Return the value of the COMPLETION_DATE column.
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getCompletionDate() {
		return this.completionDate;
	}

	/**
	 * Set the value of the COMPLETION_DATE column.
	 * 
	 * @param completionDate
	 */
	public void setCompletionDate(java.util.Date completionDate) {
		this.completionDate = completionDate;
	}

	/**
	 * Return the value of the TASK_ORDER column.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getTaskOrder() {
		return taskOrder;
	}

	/**
	 * Set the value of the TASK_ORDER column.
	 * 
	 * @param priority
	 */
	public void setTaskOrder(java.lang.Long taskOrder) {
		this.taskOrder = taskOrder;
	}

	/**
	 * Return the value of the STATUS column.
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getStatus() {
		return this.status;
	}

	/**
	 * Set the value of the STATUS column.
	 * 
	 * @param status
	 */
	public void setStatus(java.lang.String status) {
		this.status = status;
	}

	/**
	 * Implementation of the equals comparison on the basis of equality of the
	 * primary key values.
	 * 
	 * @param rhs
	 * @return boolean
	 */
	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof ActOnwatchTask))
			return false;
		ActOnwatchTask that = (ActOnwatchTask) rhs;
		if (this.getOnwatchTaskId() == null || that.getOnwatchTaskId() == null)
			return false;
		return (this.getOnwatchTaskId().equals(that.getOnwatchTaskId()));
	}

	/**
	 * Implementation of the hashCode method conforming to the Bloch pattern
	 * with the exception of array properties (these are very unlikely primary
	 * key types).
	 * 
	 * @return int
	 */
	public int hashCode() {
		if (this.hashValue == 0) {
			int result = 17;
			int onwatchTaskIdValue = this.getOnwatchTaskId() == null ? 0 : this
					.getOnwatchTaskId().hashCode();
			result = result * 37 + onwatchTaskIdValue;
			this.hashValue = result;
		}
		return this.hashValue;
	}
}
